Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contacts: fix incorrect profile timestamp after migration #294

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

mikolajpp
Copy link
Collaborator

During %0 to %1 migration, empty profiles have been wrongly migrated with bunted timestamp, causing the subscribers to crash on resubscription due to a failing assert. We fix this by introducing several changes:

  • bump the state number to %2
  • initalize the profile with correct now.bowl timestamp in +on-init
  • deploy migration to fix affected profiles
  • re-enable the assertion prohibiting subscriptions to a future-dated profile

Additionally, the +subs:pub arm is amended to never generate an empty path list for a fact.

During %0 to %1 migration, empty profiles have been wrongly
migrated with bunted timestamp, causing the subscribers
to crash on resubscription due to a failing assert. We
fix this by introducing several changes:
- bump the state number to %2
- initalize the profile with correct now.bowl timestamp in +on-init
- deploy migration to fix affected profiles
- re-enable the assertion prohibiting subscriptions
  to a future-dated profile

Additionally, the +subs:pub arm is amended to never generate
an empty path list for a fact.
@mikolajpp mikolajpp requested review from Fang- and arthyn October 29, 2024 10:12
Copy link
Member

@Fang- Fang- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this looks good. Thank you!

@mikolajpp mikolajpp merged commit 174e24d into develop Nov 11, 2024
1 check passed
@mikolajpp mikolajpp deleted the mp/contacts-migration-fix branch November 11, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants